package ioc.service;

import ioc.dao.BookDao;
import ioc.dao.BookDaoImpl;

public class BookServiceImpl {
    public BookServiceImpl() {
        System.out.println("new le service");
    }

    private BookDao bookDao;
    public void buy() {
        System.out.println("buy");
        bookDao.insert();
    }

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }
}
